Skip to content

Conversation

@BP602
Copy link

@BP602 BP602 commented Feb 6, 2026

Why

When the proxy was started from its own repository, MCP tools (read/write/edit/bash/glob/grep) inherited the proxy process cwd. OpenCode sessions launched from a different project were then operating on the wrong directory, causing confusion and incorrect file/tool behavior.

What changed

  • MCP tools now resolve relative paths from CLAUDE_PROXY_WORKDIR when set
  • fallback remains process.cwd() for backward compatibility
  • README updated to document CLAUDE_PROXY_WORKDIR

Result

  • proxy can run from one location while tools correctly target the intended project
  • predictable per-project behavior without relocating the proxy checkout

@BP602 BP602 changed the title fix: make MCP tool working directory configurable fix: run MCP tools in the caller project directory Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant